<?php
function json_tabel($jsonstr) {
	$teble ="<table id=\"edittable\" width=\"40%\" border=\"1\">
				  <tr>
				    <th scope=\"col\">颜色</th>
				    <th scope=\"col\">S</th>
				    <th scope=\"col\">M</th>
				    <th scope=\"col\">L</th>
				    <th scope=\"col\">XL</th>
				    <th scope=\"col\">XXL</th>
				    <th scope=\"col\">3XL</th>
				  </tr>";
	$obj = json_decode($jsonstr);
	//print_r($obj);
	foreach ($obj->banshichu as $value) {
		$teble .= "<tr>
				    <td>$value->yanse</td>
				    <td>$value->s</td>
				    <td>$value->m</td>
				    <td>$value->l</td>
				    <td>$value->xl</td>
				    <td>$value->xxl</td>
				    <td>$value->xxxl</td>
				  </tr>";
	}
	$teble .= "</table>";
	return $teble;
}